package main

import "fmt"

func main() {
	var i interface{}
	i = 30.123
	value, ok := i.(int)
	if ok {
		fmt.Println(value + 10)
	} else {
		fmt.Println("类型推断错误")
	}
}
